package net.csdra.libraryborrowing.domain.book;

import net.csdra.libraryborrowing.domain.CMSJpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by msf on 2017/10/9.
 */
public interface BookCopyRepository extends CMSJpaRepository<BookCopy, String> {

    List<BookCopy> findByMetaIdAndState(String metaId, String state);

    Page<BookCopy> findByMetaId(String metaId, Pageable pageable);
}
